import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages';

export default defineUniPages({
  globalStyle: {
    navigationStyle: 'default',
    navigationBarTitleText: '泰和科技',
    navigationBarBackgroundColor: '#f8f8f8',
    navigationBarTextStyle: 'black',
    backgroundColor: '#f8f8f8',
    rpxCalcMaxDeviceWidth: 560, // rpx 计算所支持的最大设备宽度，单位 px，默认值为 960
    rpxCalcBaseDeviceWidth: 375, // rpx 计算使用的基准设备宽度，设备实际宽度超出 rpx 计算所支持的最大设备宽度时将按基准宽度计算，单位 px，默认值为 375
    rpxCalcIncludeWidth: 750, // r
  },
  easycom: {
    autoscan: true,
    custom: {
      '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
    },
  },
  tabBar: {
    color: '#999999',
    selectedColor: '#2E5CF6',
    backgroundColor: '#ffffff',
    borderStyle: 'black',
    height: '50px',
    fontSize: '10px',
    iconWidth: '24px',
    spacing: '3px',
    list: [
      {
        iconPath: 'static/tabbar/home.png',
        selectedIconPath: 'static/tabbar/homeActive.png',
        pagePath: 'pages/index/index',
        text: '首页',
      },
      {
        iconPath: 'static/tabbar/message.png',
        selectedIconPath: 'static/tabbar/messageActive.png',
        pagePath: 'pages/index/message',
        text: '消息',
      },
      {
        iconPath: 'static/tabbar/user.png',
        selectedIconPath: 'static/tabbar/userActive.png',
        pagePath: 'pages/index/my',
        text: '我的',
      },
    ],
  },
});
